home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2324 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.umbc.edu!not-for-mail
  2. From: schlein@umbc.edu (Jonas J. Schlein)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: What should be returned?
  5. Date: 20 Jan 1996 10:13:07 -0500
  6. Organization: University of Maryland Baltimore County
  7. Message-ID: <4dr0q3$87n@umbc9.umbc.edu>
  8. References: <4dj8pv$cjd@eng_ser1.erg.cuhk.hk> <DLEvrv.K85@freenet.durham.org>
  9. NNTP-Posting-Host: umbc9.umbc.edu
  10. NNTP-Posting-User: schlein
  11.  
  12. Chris Schmidt <cschmidt@freenet.durham.org> wrote:
  13. |> I myself am just starting to learn this stuff too, but from what I have 
  14. |> read so far.. if you do not require an exit value from the program use:
  15. |> 
  16. |> void main(void)
  17.  
  18. <snip>
  19.  
  20. |> You C gurus out there can correct me if I am wrong on this..I AM just a 
  21. |> rookie and don't want to get into the bad habits this soon  ;-)
  22.  
  23. Then read the FAQ!!! It doesn't matter what "YOU" require it matters what
  24. the language requires to produce executables with defined behavior. The
  25. main() function returns an int plain and simple. If you don't use the
  26. return value that's fine, but one day someone or something may.
  27.  
  28. Read FAQ questions 11.12, 11.14 and 11.15.
  29. -- 
  30. "If it wasn't for C, we would be using BASI, PASAL, and OBOL."
  31.  
  32. Jonas J. Schlein  (schlein@gl.umbc.edu)
  33.